export function formatString(template: string, values: { [key: string]: any }): string {
  return template.replace(/{(\w+)}/g, (match, key) => {
    return typeof values[key] !== 'undefined' ? values[key] : match;
  });
}